All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kzs_mmap.h File Reference

Functions

kzBool kzsMemoryMappedFileIsSupported (void)
 Returns true if memory mapped files are supported on this platform. More...
 
kzsError kzsMemoryMappedFileCreate (kzString filePath, struct KzsMemoryMappedFile **out_memoryMappedFile)
 Opens a memory mapped file. More...
 
kzsError kzsMemoryMappedFileDelete (struct KzsMemoryMappedFile *memoryMappedFile)
 Closes a memory mapped file. More...
 
kzBool kzsMemoryMappedFileIsValid (kzString filePath)
 Returns true if the file exists and is over 0 bytes in size. More...
 
kzSizeT kzsMemoryMappedFileGetSize (const struct KzsMemoryMappedFile *memoryMappedFile)
 Returns the size of the memory mapped file. More...
 
void * kzsMemoryMappedFileGetPointer (const struct KzsMemoryMappedFile *memoryMappedFile)
 Returns the address of the beginning of the memory mapped file. More...
 

Function Documentation

kzBool kzsMemoryMappedFileIsSupported ( void  )

Returns true if memory mapped files are supported on this platform.

kzsError kzsMemoryMappedFileCreate ( kzString  filePath,
struct KzsMemoryMappedFile **  out_memoryMappedFile 
)

Opens a memory mapped file.

kzsError kzsMemoryMappedFileDelete ( struct KzsMemoryMappedFile *  memoryMappedFile)

Closes a memory mapped file.

kzBool kzsMemoryMappedFileIsValid ( kzString  filePath)

Returns true if the file exists and is over 0 bytes in size.

kzSizeT kzsMemoryMappedFileGetSize ( const struct KzsMemoryMappedFile *  memoryMappedFile)

Returns the size of the memory mapped file.

void* kzsMemoryMappedFileGetPointer ( const struct KzsMemoryMappedFile *  memoryMappedFile)

Returns the address of the beginning of the memory mapped file.